(function (angular) {
    angular.module('app').config(['$stateProvider','$urlRouterProvider',function ($stateProvider,$urlRouterProvider) {
        $stateProvider.state('home',{
            url:'/home',
            views:{
                home:{
                    templateUrl:'../views/home_tpl.html',
                    controller:'homeController'
                },
                author:{
                    template:'<h1>我是作者</h1>'

                },
                content:{
                    template:'<h1>我是栏目</h1>'
                },
                my:{
                    template:'<h1>我的</h1>'
                }
            }
        });
        $urlRouterProvider.otherwise('/home/list');
    }])

})(angular);
(function (angular) {
    angular.module('app').config(['$stateProvider','$urlRouterProvider',function ($stateProvider,$urlRouterProvider) {
        $stateProvider.state('home.list',{
            url:'/list',
            template:'<list lists="res"></list>'
        });

    }])

})(angular);
(function (angular) {
    angular.module('app').config(['$stateProvider','$urlRouterProvider',function ($stateProvider,$urlRouterProvider) {
        $stateProvider.state('home.dital',{
            url:'/dital/:id',
            template:'<dital content="{{content}}"></dital>',
            controller:'ditalController'
        });

    }])

})(angular);


